let db = require('../db/index')
//site-aqi-mouth
exports.siteaqi = (req, res) => {
  var sql = 'select * from siteaqimouth'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//site-day
exports.siteday = (req, res) => {
  var sql = 'select * from siteday'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//site-mouth
exports.sitemouth = (req, res) => {
  var sql = 'select * from sitemouth'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//site-mouth-mean
exports.sitemouthmean = (req, res) => {
  var sql = 'select * from sitemouthmean'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//city-day
exports.cityday = (req, res) => {
  var sql = 'select * from cityday'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//bayonet-hour
exports.bayonethour = (req, res) => {
  var sql = 'select * from bayonethour'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
//bayonet-day
exports.bayonetday = (req, res) => {
  var sql = 'select * from bayonetday'
  db.query(sql, (err, data) => {
      if(err) {
          return res.send('错误：' + err.message)
      }
      res.send(data)
  })
}
